<?php

namespace Database\Seeders;

use App\Models\Domain;
use App\Models\DomainRole;
use App\Models\Team;
use App\Models\TeamRole;
use App\Models\User;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;

class TeamRoleSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $team = Team::find(1);

        $team->roles()->create([ 'name' => 'Project Manager']);
        $team->roles()->create([ 'name' => 'Super duper']);

        $user = User::find(1);
        $role = TeamRole::find(2);
        $user->teamRoles()->attach($role);
    }
}
